
"""
test middleware that sets an environment variable "variable" to "value"
"""

class changeEnv:
    def __init__(self, page):
        self.page = page
    def __call__(self, env, start_response):
        env = env.copy()
        env["variable"] = "value"
        return self.page(env, start_response)

__middleware__ = changeEnv
